<!-- plugin sexy form -->
<link rel="stylesheet" href="../scripts/uniform/css/uniform.default.css" media="screen" />
<script src="../scripts/uniform/jquery.uniform.js"></script>

<script type="text/javascript">
    $(document).ready(function()
    {
        $("select, input").uniform();
    });
</script>
<?php
    function __autoload($class_name)
	{
		include_once('../classes/'.strtolower($class_name).'.php');
	}
    
    $MaLoaiSanPhamCap1 = 0;
    
    if(isset($_POST['MaLoaiSanPhamCap1']))
        $MaLoaiSanPhamCap1 = $_POST['MaLoaiSanPhamCap1'];
    
    $loaisanphamc1 = new loaisanphamc1bs();
    $loaisanphamc1->MaLoaiSanPhamCap1 = $MaLoaiSanPhamCap1;
    $ret_loaisanphamc1 = $loaisanphamc1->getList();
    
    $loaisanpham = new loaisanphambs();
    $loaisanpham->MaLoaiSanPham = $ret_loaisanphamc1[0]["MaLoaiSanPham"];
    $ret_loaisanpham = $loaisanpham->getList();
    
    echo '<label>Loại sản phẩm &nbsp;</label>';
    echo '<select name="MaLoaiSanPham" disabled="disabled">';
			
			for($i = 0; $i < ($ret_loaisanpham != false ? count($ret_loaisanpham) : 0); $i++)
			{
				echo "<option value=\"{$ret_loaisanpham[$i]['MaLoaiSanPham']}\">{$ret_loaisanpham[$i]['TenLoaiSanPham']}</option>";
			}
	echo '</select>';
?>